export function formatPrice(app)
{
    app.directive("fPrice", {
        mounted(el,bindings) {
            //获取元素的值
            let content = el.textContent;
            //获取符号
            let token = bindings.value;
            //没有传入符号
            if (!token) token = "￥";
            content = token + content;
            el.textContent = content;
        },
    })
}